<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<script type="text/javascript">
    $(function() {
        $('#shopReturnAuditForm').form({
            url : '${path }/appShopReturn/edit',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');
                    parent.$.modalDialog.handler.dialog('close');
                }
            }
        });
    });


</script>
<div style="padding: 3px;">
    <form id="shopReturnAuditForm" method="post">
        <table class="grid">
            <tr>
                <td>退货单号</td>
            <td>${returnVo.orderCode}</td>
            <td>
                时间
            </td>
            <td>
                <fmt:formatDate value="${returnVo.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
            </td>
        </tr>
            <tr>
                <td>订单号</td>
                <td>${returnVo.orderCode}</td>
                <td>商品编号</td>
                <td>${returnVo.goodsCode}</td>
            </tr>
            <tr>
                <td>商品名称</td>
                <td>${returnVo.goodsName}</td>
                <td>单价</td>
                <td>${returnVo.goodsPrice}</td>
            </tr>
            <tr>
                <td>数量</td>
                <td>${returnVo.goodsNum}</td>
                <td>总价</td>
                <td>${returnVo.goodsTprice}</td>
            </tr>
            <tr>
                <td>联系人</td>
                <td>${returnVo.receName}</td>
                <td>电话</td>
                <td>${returnVo.receTel}</td>
            </tr>
            <tr>
                <td>地址</td>
                <td colspan="3">${returnVo.receAddress}
                    <input type="hidden" name="orderNo" value="${retyurnVo.orderCode}">
                    <input type="hidden" name="id" value="${returnVo.id}">
                    <input type="hidden" name="status" value="${returnVo.status}">
                </td>
            </tr>
        </table>
    </form>
</div>